{"ast":null,"code":"import _classCallCheck from \"@babel/runtime/helpers/esm/classCallCheck\";\nimport _createClass from \"@babel/runtime/helpers/esm/createClass\";\nimport _assertThisInitialized from \"@babel/runtime/helpers/esm/assertThisInitialized\";\nimport _inherits from \"@babel/runtime/helpers/esm/inherits\";\nimport _createSuper from \"@babel/runtime/helpers/esm/createSuper\";\nimport _extends from \"@babel/runtime/helpers/esm/extends\";\nimport _defineProperty from \"@babel/runtime/helpers/esm/defineProperty\";\nimport _objectSpread from \"@babel/runtime/helpers/esm/objectSpread2\";\nimport _slicedToArray from \"@babel/runtime/helpers/esm/slicedToArray\";\n\n/**\n * Removed:\n *  - getCalendarContainer: use `getPopupContainer` instead\n *  - onOk\n *\n * New Feature:\n *  - picker\n *  - allowEmpty\n *  - selectable\n *\n * Tips: Should add faq about `datetime` mode with `defaultValue`\n */\nimport classNames from 'classnames';\nimport useMergedState from \"rc-util/es/hooks/useMergedState\";\nimport warning from \"rc-util/es/warning\";\nimport * as React from 'react';\nimport useHoverValue from \"./hooks/useHoverValue\";\nimport usePickerInput from \"./hooks/usePickerInput\";\nimport usePresets from \"./hooks/usePresets\";\nimport useTextValueMapping from \"./hooks/useTextValueMapping\";\nimport useValueTexts from \"./hooks/useValueTexts\";\nimport PanelContext from \"./PanelContext\";\nimport PickerPanel from \"./PickerPanel\";\nimport PickerTrigger from \"./PickerTrigger\";\nimport PresetPanel from \"./PresetPanel\";\nimport { formatValue, isEqual, parseValue } from \"./utils/dateUtil\";\nimport getDataOrAriaProps, { toArray } from \"./utils/miscUtil\";\nimport { elementsContains, getDefaultFormat, getInputSize } from \"./utils/uiUtil\";\nimport { legacyPropsWarning } from \"./utils/warnUtil\";\nfunction InnerPicker(props) {\n  var _classNames2;\n  var _ref = props,\n    _ref$prefixCls = _ref.prefixCls,\n    prefixCls = _ref$prefixCls === void 0 ? 'rc-picker' : _ref$prefixCls,\n    id = _ref.id,\n    tabIndex = _ref.tabIndex,\n    style = _ref.style,\n    className = _ref.className,\n    dropdownClassName = _ref.dropdownClassName,\n    dropdownAlign = _ref.dropdownAlign,\n    popupStyle = _ref.popupStyle,\n    transitionName = _ref.transitionName,\n    generateConfig = _ref.generateConfig,\n    locale = _ref.locale,\n    inputReadOnly = _ref.inputReadOnly,\n    allowClear = _ref.allowClear,\n    autoFocus = _ref.autoFocus,\n    showTime = _ref.showTime,\n    _ref$picker = _ref.picker,\n    picker = _ref$picker === void 0 ? 'date' : _ref$picker,\n    format = _ref.format,\n    use12Hours = _ref.use12Hours,\n    value = _ref.value,\n    defaultValue = _ref.defaultValue,\n    presets = _ref.presets,\n    open = _ref.open,\n    defaultOpen = _ref.defaultOpen,\n    defaultOpenValue = _ref.defaultOpenValue,\n    suffixIcon = _ref.suffixIcon,\n    clearIcon = _ref.clearIcon,\n    disabled = _ref.disabled,\n    disabledDate = _ref.disabledDate,\n    placeholder = _ref.placeholder,\n    getPopupContainer = _ref.getPopupContainer,\n    pickerRef = _ref.pickerRef,\n    panelRender = _ref.panelRender,\n    onChange = _ref.onChange,\n    onOpenChange = _ref.onOpenChange,\n    onFocus = _ref.onFocus,\n    onBlur = _ref.onBlur,\n    onMouseDown = _ref.onMouseDown,\n    onMouseUp = _ref.onMouseUp,\n    onMouseEnter = _ref.onMouseEnter,\n    onMouseLeave = _ref.onMouseLeave,\n    onContextMenu = _ref.onContextMenu,\n    onClick = _ref.onClick,\n    _onKeyDown = _ref.onKeyDown,\n    _onSelect = _ref.onSelect,\n    direction = _ref.direction,\n    _ref$autoComplete = _ref.autoComplete,\n    autoComplete = _ref$autoComplete === void 0 ? 'off' : _ref$autoComplete,\n    inputRender = _ref.inputRender;\n  var inputRef = React.useRef(null);\n  var needConfirmButton = picker === 'date' && !!showTime || picker === 'time';\n  var presetList = usePresets(presets); // ============================ Warning ============================\n\n  if (process.env.NODE_ENV !== 'production') {\n    legacyPropsWarning(props);\n  } // ============================= State =============================\n\n  var formatList = toArray(getDefaultFormat(format, picker, showTime, use12Hours)); // Panel ref\n\n  var panelDivRef = React.useRef(null);\n  var inputDivRef = React.useRef(null);\n  var containerRef = React.useRef(null); // Real value\n\n  var _useMergedState = useMergedState(null, {\n      value: value,\n      defaultValue: defaultValue\n    }),\n    _useMergedState2 = _slicedToArray(_useMergedState, 2),\n    mergedValue = _useMergedState2[0],\n    setInnerValue = _useMergedState2[1]; // Selected value\n\n  var _React$useState = React.useState(mergedValue),\n    _React$useState2 = _slicedToArray(_React$useState, 2),\n    selectedValue = _React$useState2[0],\n    setSelectedValue = _React$useState2[1]; // Operation ref\n\n  var operationRef = React.useRef(null); // Open\n\n  var _useMergedState3 = useMergedState(false, {\n      value: open,\n      defaultValue: defaultOpen,\n      postState: function postState(postOpen) {\n        return disabled ? false : postOpen;\n      },\n      onChange: function onChange(newOpen) {\n        if (onOpenChange) {\n          onOpenChange(newOpen);\n        }\n        if (!newOpen && operationRef.current && operationRef.current.onClose) {\n          operationRef.current.onClose();\n        }\n      }\n    }),\n    _useMergedState4 = _slicedToArray(_useMergedState3, 2),\n    mergedOpen = _useMergedState4[0],\n    triggerInnerOpen = _useMergedState4[1]; // ============================= Text ==============================\n\n  var _useValueTexts = useValueTexts(selectedValue, {\n      formatList: formatList,\n      generateConfig: generateConfig,\n      locale: locale\n    }),\n    _useValueTexts2 = _slicedToArray(_useValueTexts, 2),\n    valueTexts = _useValueTexts2[0],\n    firstValueText = _useValueTexts2[1];\n  var _useTextValueMapping = useTextValueMapping({\n      valueTexts: valueTexts,\n      onTextChange: function onTextChange(newText) {\n        var inputDate = parseValue(newText, {\n          locale: locale,\n          formatList: formatList,\n          generateConfig: generateConfig\n        });\n        if (inputDate && (!disabledDate || !disabledDate(inputDate))) {\n          setSelectedValue(inputDate);\n        }\n      }\n    }),\n    _useTextValueMapping2 = _slicedToArray(_useTextValueMapping, 3),\n    text = _useTextValueMapping2[0],\n    triggerTextChange = _useTextValueMapping2[1],\n    resetText = _useTextValueMapping2[2]; // ============================ Trigger ============================\n\n  var triggerChange = function triggerChange(newValue) {\n    setSelectedValue(newValue);\n    setInnerValue(newValue);\n    if (onChange && !isEqual(generateConfig, mergedValue, newValue)) {\n      onChange(newValue, newValue ? formatValue(newValue, {\n        generateConfig: generateConfig,\n        locale: locale,\n        format: formatList[0]\n      }) : '');\n    }\n  };\n  var triggerOpen = function triggerOpen(newOpen) {\n    if (disabled && newOpen) {\n      return;\n    }\n    triggerInnerOpen(newOpen);\n  };\n  var forwardKeyDown = function forwardKeyDown(e) {\n    if (mergedOpen && operationRef.current && operationRef.current.onKeyDown) {\n      // Let popup panel handle keyboard\n      return operationRef.current.onKeyDown(e);\n    }\n    /* istanbul ignore next */\n\n    /* eslint-disable no-lone-blocks */\n\n    {\n      warning(false, 'Picker not correct forward KeyDown operation. Please help to fire issue about this.');\n      return false;\n    }\n  };\n  var onInternalClick = function onInternalClick() {\n    for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n      args[_key] = arguments[_key];\n    }\n    onClick === null || onClick === void 0 ? void 0 : onClick.apply(void 0, args);\n    if (inputRef.current) {\n      inputRef.current.focus();\n      triggerOpen(true);\n    }\n  }; // ============================= Input =============================\n\n  var _usePickerInput = usePickerInput({\n      blurToCancel: needConfirmButton,\n      open: mergedOpen,\n      value: text,\n      triggerOpen: triggerOpen,\n      forwardKeyDown: forwardKeyDown,\n      isClickOutside: function isClickOutside(target) {\n        return !elementsContains([panelDivRef.current, inputDivRef.current, containerRef.current], target);\n      },\n      onSubmit: function onSubmit() {\n        if (\n        // When user typing disabledDate with keyboard and enter, this value will be empty\n        !selectedValue ||\n        // Normal disabled check\n        disabledDate && disabledDate(selectedValue)) {\n          return false;\n        }\n        triggerChange(selectedValue);\n        triggerOpen(false);\n        resetText();\n        return true;\n      },\n      onCancel: function onCancel() {\n        triggerOpen(false);\n        setSelectedValue(mergedValue);\n        resetText();\n      },\n      onKeyDown: function onKeyDown(e, preventDefault) {\n        _onKeyDown === null || _onKeyDown === void 0 ? void 0 : _onKeyDown(e, preventDefault);\n      },\n      onFocus: onFocus,\n      onBlur: onBlur\n    }),\n    _usePickerInput2 = _slicedToArray(_usePickerInput, 2),\n    inputProps = _usePickerInput2[0],\n    _usePickerInput2$ = _usePickerInput2[1],\n    focused = _usePickerInput2$.focused,\n    typing = _usePickerInput2$.typing; // ============================= Sync ==============================\n  // Close should sync back with text value\n\n  React.useEffect(function () {\n    if (!mergedOpen) {\n      setSelectedValue(mergedValue);\n      if (!valueTexts.length || valueTexts[0] === '') {\n        triggerTextChange('');\n      } else if (firstValueText !== text) {\n        resetText();\n      }\n    }\n  }, [mergedOpen, valueTexts]); // Change picker should sync back with text value\n\n  React.useEffect(function () {\n    if (!mergedOpen) {\n      resetText();\n    }\n  }, [picker]); // Sync innerValue with control mode\n\n  React.useEffect(function () {\n    // Sync select value\n    setSelectedValue(mergedValue);\n  }, [mergedValue]); // ============================ Private ============================\n\n  if (pickerRef) {\n    pickerRef.current = {\n      focus: function focus() {\n        if (inputRef.current) {\n          inputRef.current.focus();\n        }\n      },\n      blur: function blur() {\n        if (inputRef.current) {\n          inputRef.current.blur();\n        }\n      }\n    };\n  }\n  var _useHoverValue = useHoverValue(text, {\n      formatList: formatList,\n      generateConfig: generateConfig,\n      locale: locale\n    }),\n    _useHoverValue2 = _slicedToArray(_useHoverValue, 3),\n    hoverValue = _useHoverValue2[0],\n    onEnter = _useHoverValue2[1],\n    onLeave = _useHoverValue2[2]; // ============================= Panel =============================\n\n  var panelProps = _objectSpread(_objectSpread({}, props), {}, {\n    className: undefined,\n    style: undefined,\n    pickerValue: undefined,\n    onPickerValueChange: undefined,\n    onChange: null\n  });\n  var panelNode = /*#__PURE__*/React.createElement(\"div\", {\n    className: \"\".concat(prefixCls, \"-panel-layout\")\n  }, /*#__PURE__*/React.createElement(PresetPanel, {\n    prefixCls: prefixCls,\n    presets: presetList,\n    onClick: function onClick(nextValue) {\n      triggerChange(nextValue);\n      triggerOpen(false);\n    }\n  }), /*#__PURE__*/React.createElement(PickerPanel, _extends({}, panelProps, {\n    generateConfig: generateConfig,\n    className: classNames(_defineProperty({}, \"\".concat(prefixCls, \"-panel-focused\"), !typing)),\n    value: selectedValue,\n    locale: locale,\n    tabIndex: -1,\n    onSelect: function onSelect(date) {\n      _onSelect === null || _onSelect === void 0 ? void 0 : _onSelect(date);\n      setSelectedValue(date);\n    },\n    direction: direction,\n    onPanelChange: function onPanelChange(viewDate, mode) {\n      var onPanelChange = props.onPanelChange;\n      onLeave(true);\n      onPanelChange === null || onPanelChange === void 0 ? void 0 : onPanelChange(viewDate, mode);\n    }\n  })));\n  if (panelRender) {\n    panelNode = panelRender(panelNode);\n  }\n  var panel = /*#__PURE__*/React.createElement(\"div\", {\n    className: \"\".concat(prefixCls, \"-panel-container\"),\n    ref: panelDivRef,\n    onMouseDown: function onMouseDown(e) {\n      e.preventDefault();\n    }\n  }, panelNode);\n  var suffixNode;\n  if (suffixIcon) {\n    suffixNode = /*#__PURE__*/React.createElement(\"span\", {\n      className: \"\".concat(prefixCls, \"-suffix\")\n    }, suffixIcon);\n  }\n  var clearNode;\n  if (allowClear && mergedValue && !disabled) {\n    clearNode = /*#__PURE__*/React.createElement(\"span\", {\n      onMouseDown: function onMouseDown(e) {\n        e.preventDefault();\n        e.stopPropagation();\n      },\n      onMouseUp: function onMouseUp(e) {\n        e.preventDefault();\n        e.stopPropagation();\n        triggerChange(null);\n        triggerOpen(false);\n      },\n      className: \"\".concat(prefixCls, \"-clear\"),\n      role: \"button\"\n    }, clearIcon || /*#__PURE__*/React.createElement(\"span\", {\n      className: \"\".concat(prefixCls, \"-clear-btn\")\n    }));\n  }\n  var mergedInputProps = _objectSpread(_objectSpread(_objectSpread({\n    id: id,\n    tabIndex: tabIndex,\n    disabled: disabled,\n    readOnly: inputReadOnly || typeof formatList[0] === 'function' || !typing,\n    value: hoverValue || text,\n    onChange: function onChange(e) {\n      triggerTextChange(e.target.value);\n    },\n    autoFocus: autoFocus,\n    placeholder: placeholder,\n    ref: inputRef,\n    title: text\n  }, inputProps), {}, {\n    size: getInputSize(picker, formatList[0], generateConfig)\n  }, getDataOrAriaProps(props)), {}, {\n    autoComplete: autoComplete\n  });\n  var inputNode = inputRender ? inputRender(mergedInputProps) : /*#__PURE__*/React.createElement(\"input\", mergedInputProps); // ============================ Warning ============================\n\n  if (process.env.NODE_ENV !== 'production') {\n    warning(!defaultOpenValue, '`defaultOpenValue` may confuse user for the current value status. Please use `defaultValue` instead.');\n  } // ============================ Return =============================\n\n  var onContextSelect = function onContextSelect(date, type) {\n    if (type === 'submit' || type !== 'key' && !needConfirmButton) {\n      // triggerChange will also update selected values\n      triggerChange(date);\n      triggerOpen(false);\n    }\n  };\n  var popupPlacement = direction === 'rtl' ? 'bottomRight' : 'bottomLeft';\n  return /*#__PURE__*/React.createElement(PanelContext.Provider, {\n    value: {\n      operationRef: operationRef,\n      hideHeader: picker === 'time',\n      onSelect: onContextSelect,\n      open: mergedOpen,\n      defaultOpenValue: defaultOpenValue,\n      onDateMouseEnter: onEnter,\n      onDateMouseLeave: onLeave\n    }\n  }, /*#__PURE__*/React.createElement(PickerTrigger, {\n    visible: mergedOpen,\n    popupElement: panel,\n    popupStyle: popupStyle,\n    prefixCls: prefixCls,\n    dropdownClassName: dropdownClassName,\n    dropdownAlign: dropdownAlign,\n    getPopupContainer: getPopupContainer,\n    transitionName: transitionName,\n    popupPlacement: popupPlacement,\n    direction: direction\n  }, /*#__PURE__*/React.createElement(\"div\", {\n    ref: containerRef,\n    className: classNames(prefixCls, className, (_classNames2 = {}, _defineProperty(_classNames2, \"\".concat(prefixCls, \"-disabled\"), disabled), _defineProperty(_classNames2, \"\".concat(prefixCls, \"-focused\"), focused), _defineProperty(_classNames2, \"\".concat(prefixCls, \"-rtl\"), direction === 'rtl'), _classNames2)),\n    style: style,\n    onMouseDown: onMouseDown,\n    onMouseUp: onMouseUp,\n    onMouseEnter: onMouseEnter,\n    onMouseLeave: onMouseLeave,\n    onContextMenu: onContextMenu,\n    onClick: onInternalClick\n  }, /*#__PURE__*/React.createElement(\"div\", {\n    className: classNames(\"\".concat(prefixCls, \"-input\"), _defineProperty({}, \"\".concat(prefixCls, \"-input-placeholder\"), !!hoverValue)),\n    ref: inputDivRef\n  }, inputNode, suffixNode, clearNode))));\n} // Wrap with class component to enable pass generic with instance method\n\nvar Picker = /*#__PURE__*/function (_React$Component) {\n  _inherits(Picker, _React$Component);\n  var _super = _createSuper(Picker);\n  function Picker() {\n    var _this;\n    _classCallCheck(this, Picker);\n    for (var _len2 = arguments.length, args = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {\n      args[_key2] = arguments[_key2];\n    }\n    _this = _super.call.apply(_super, [this].concat(args));\n    _defineProperty(_assertThisInitialized(_this), \"pickerRef\", /*#__PURE__*/React.createRef());\n    _defineProperty(_assertThisInitialized(_this), \"focus\", function () {\n      if (_this.pickerRef.current) {\n        _this.pickerRef.current.focus();\n      }\n    });\n    _defineProperty(_assertThisInitialized(_this), \"blur\", function () {\n      if (_this.pickerRef.current) {\n        _this.pickerRef.current.blur();\n      }\n    });\n    return _this;\n  }\n  _createClass(Picker, [{\n    key: \"render\",\n    value: function render() {\n      return /*#__PURE__*/React.createElement(InnerPicker, _extends({}, this.props, {\n        pickerRef: this.pickerRef\n      }));\n    }\n  }]);\n  return Picker;\n}(React.Component);\nexport default Picker;","map":{"version":3,"names":["_classCallCheck","_createClass","_assertThisInitialized","_inherits","_createSuper","_extends","_defineProperty","_objectSpread","_slicedToArray","classNames","useMergedState","warning","React","useHoverValue","usePickerInput","usePresets","useTextValueMapping","useValueTexts","PanelContext","PickerPanel","PickerTrigger","PresetPanel","formatValue","isEqual","parseValue","getDataOrAriaProps","toArray","elementsContains","getDefaultFormat","getInputSize","legacyPropsWarning","InnerPicker","props","_classNames2","_ref","_ref$prefixCls","prefixCls","id","tabIndex","style","className","dropdownClassName","dropdownAlign","popupStyle","transitionName","generateConfig","locale","inputReadOnly","allowClear","autoFocus","showTime","_ref$picker","picker","format","use12Hours","value","defaultValue","presets","open","defaultOpen","defaultOpenValue","suffixIcon","clearIcon","disabled","disabledDate","placeholder","getPopupContainer","pickerRef","panelRender","onChange","onOpenChange","onFocus","onBlur","onMouseDown","onMouseUp","onMouseEnter","onMouseLeave","onContextMenu","onClick","_onKeyDown","onKeyDown","_onSelect","onSelect","direction","_ref$autoComplete","autoComplete","inputRender","inputRef","useRef","needConfirmButton","presetList","process","env","NODE_ENV","formatList","panelDivRef","inputDivRef","containerRef","_useMergedState","_useMergedState2","mergedValue","setInnerValue","_React$useState","useState","_React$useState2","selectedValue","setSelectedValue","operationRef","_useMergedState3","postState","postOpen","newOpen","current","onClose","_useMergedState4","mergedOpen","triggerInnerOpen","_useValueTexts","_useValueTexts2","valueTexts","firstValueText","_useTextValueMapping","onTextChange","newText","inputDate","_useTextValueMapping2","text","triggerTextChange","resetText","triggerChange","newValue","triggerOpen","forwardKeyDown","e","onInternalClick","_len","arguments","length","args","Array","_key","apply","focus","_usePickerInput","blurToCancel","isClickOutside","target","onSubmit","onCancel","preventDefault","_usePickerInput2","inputProps","_usePickerInput2$","focused","typing","useEffect","blur","_useHoverValue","_useHoverValue2","hoverValue","onEnter","onLeave","panelProps","undefined","pickerValue","onPickerValueChange","panelNode","createElement","concat","nextValue","date","onPanelChange","viewDate","mode","panel","ref","suffixNode","clearNode","stopPropagation","role","mergedInputProps","readOnly","title","size","inputNode","onContextSelect","type","popupPlacement","Provider","hideHeader","onDateMouseEnter","onDateMouseLeave","visible","popupElement","Picker","_React$Component","_super","_this","_len2","_key2","call","createRef","key","render","Component"],"sources":["/data/messenger.client/node_modules/rc-picker/es/Picker.js"],"sourcesContent":["import _classCallCheck from \"@babel/runtime/helpers/esm/classCallCheck\";\nimport _createClass from \"@babel/runtime/helpers/esm/createClass\";\nimport _assertThisInitialized from \"@babel/runtime/helpers/esm/assertThisInitialized\";\nimport _inherits from \"@babel/runtime/helpers/esm/inherits\";\nimport _createSuper from \"@babel/runtime/helpers/esm/createSuper\";\nimport _extends from \"@babel/runtime/helpers/esm/extends\";\nimport _defineProperty from \"@babel/runtime/helpers/esm/defineProperty\";\nimport _objectSpread from \"@babel/runtime/helpers/esm/objectSpread2\";\nimport _slicedToArray from \"@babel/runtime/helpers/esm/slicedToArray\";\n\n/**\n * Removed:\n *  - getCalendarContainer: use `getPopupContainer` instead\n *  - onOk\n *\n * New Feature:\n *  - picker\n *  - allowEmpty\n *  - selectable\n *\n * Tips: Should add faq about `datetime` mode with `defaultValue`\n */\nimport classNames from 'classnames';\nimport useMergedState from \"rc-util/es/hooks/useMergedState\";\nimport warning from \"rc-util/es/warning\";\nimport * as React from 'react';\nimport useHoverValue from \"./hooks/useHoverValue\";\nimport usePickerInput from \"./hooks/usePickerInput\";\nimport usePresets from \"./hooks/usePresets\";\nimport useTextValueMapping from \"./hooks/useTextValueMapping\";\nimport useValueTexts from \"./hooks/useValueTexts\";\nimport PanelContext from \"./PanelContext\";\nimport PickerPanel from \"./PickerPanel\";\nimport PickerTrigger from \"./PickerTrigger\";\nimport PresetPanel from \"./PresetPanel\";\nimport { formatValue, isEqual, parseValue } from \"./utils/dateUtil\";\nimport getDataOrAriaProps, { toArray } from \"./utils/miscUtil\";\nimport { elementsContains, getDefaultFormat, getInputSize } from \"./utils/uiUtil\";\nimport { legacyPropsWarning } from \"./utils/warnUtil\";\n\nfunction InnerPicker(props) {\n  var _classNames2;\n\n  var _ref = props,\n      _ref$prefixCls = _ref.prefixCls,\n      prefixCls = _ref$prefixCls === void 0 ? 'rc-picker' : _ref$prefixCls,\n      id = _ref.id,\n      tabIndex = _ref.tabIndex,\n      style = _ref.style,\n      className = _ref.className,\n      dropdownClassName = _ref.dropdownClassName,\n      dropdownAlign = _ref.dropdownAlign,\n      popupStyle = _ref.popupStyle,\n      transitionName = _ref.transitionName,\n      generateConfig = _ref.generateConfig,\n      locale = _ref.locale,\n      inputReadOnly = _ref.inputReadOnly,\n      allowClear = _ref.allowClear,\n      autoFocus = _ref.autoFocus,\n      showTime = _ref.showTime,\n      _ref$picker = _ref.picker,\n      picker = _ref$picker === void 0 ? 'date' : _ref$picker,\n      format = _ref.format,\n      use12Hours = _ref.use12Hours,\n      value = _ref.value,\n      defaultValue = _ref.defaultValue,\n      presets = _ref.presets,\n      open = _ref.open,\n      defaultOpen = _ref.defaultOpen,\n      defaultOpenValue = _ref.defaultOpenValue,\n      suffixIcon = _ref.suffixIcon,\n      clearIcon = _ref.clearIcon,\n      disabled = _ref.disabled,\n      disabledDate = _ref.disabledDate,\n      placeholder = _ref.placeholder,\n      getPopupContainer = _ref.getPopupContainer,\n      pickerRef = _ref.pickerRef,\n      panelRender = _ref.panelRender,\n      onChange = _ref.onChange,\n      onOpenChange = _ref.onOpenChange,\n      onFocus = _ref.onFocus,\n      onBlur = _ref.onBlur,\n      onMouseDown = _ref.onMouseDown,\n      onMouseUp = _ref.onMouseUp,\n      onMouseEnter = _ref.onMouseEnter,\n      onMouseLeave = _ref.onMouseLeave,\n      onContextMenu = _ref.onContextMenu,\n      onClick = _ref.onClick,\n      _onKeyDown = _ref.onKeyDown,\n      _onSelect = _ref.onSelect,\n      direction = _ref.direction,\n      _ref$autoComplete = _ref.autoComplete,\n      autoComplete = _ref$autoComplete === void 0 ? 'off' : _ref$autoComplete,\n      inputRender = _ref.inputRender;\n  var inputRef = React.useRef(null);\n  var needConfirmButton = picker === 'date' && !!showTime || picker === 'time';\n  var presetList = usePresets(presets); // ============================ Warning ============================\n\n  if (process.env.NODE_ENV !== 'production') {\n    legacyPropsWarning(props);\n  } // ============================= State =============================\n\n\n  var formatList = toArray(getDefaultFormat(format, picker, showTime, use12Hours)); // Panel ref\n\n  var panelDivRef = React.useRef(null);\n  var inputDivRef = React.useRef(null);\n  var containerRef = React.useRef(null); // Real value\n\n  var _useMergedState = useMergedState(null, {\n    value: value,\n    defaultValue: defaultValue\n  }),\n      _useMergedState2 = _slicedToArray(_useMergedState, 2),\n      mergedValue = _useMergedState2[0],\n      setInnerValue = _useMergedState2[1]; // Selected value\n\n\n  var _React$useState = React.useState(mergedValue),\n      _React$useState2 = _slicedToArray(_React$useState, 2),\n      selectedValue = _React$useState2[0],\n      setSelectedValue = _React$useState2[1]; // Operation ref\n\n\n  var operationRef = React.useRef(null); // Open\n\n  var _useMergedState3 = useMergedState(false, {\n    value: open,\n    defaultValue: defaultOpen,\n    postState: function postState(postOpen) {\n      return disabled ? false : postOpen;\n    },\n    onChange: function onChange(newOpen) {\n      if (onOpenChange) {\n        onOpenChange(newOpen);\n      }\n\n      if (!newOpen && operationRef.current && operationRef.current.onClose) {\n        operationRef.current.onClose();\n      }\n    }\n  }),\n      _useMergedState4 = _slicedToArray(_useMergedState3, 2),\n      mergedOpen = _useMergedState4[0],\n      triggerInnerOpen = _useMergedState4[1]; // ============================= Text ==============================\n\n\n  var _useValueTexts = useValueTexts(selectedValue, {\n    formatList: formatList,\n    generateConfig: generateConfig,\n    locale: locale\n  }),\n      _useValueTexts2 = _slicedToArray(_useValueTexts, 2),\n      valueTexts = _useValueTexts2[0],\n      firstValueText = _useValueTexts2[1];\n\n  var _useTextValueMapping = useTextValueMapping({\n    valueTexts: valueTexts,\n    onTextChange: function onTextChange(newText) {\n      var inputDate = parseValue(newText, {\n        locale: locale,\n        formatList: formatList,\n        generateConfig: generateConfig\n      });\n\n      if (inputDate && (!disabledDate || !disabledDate(inputDate))) {\n        setSelectedValue(inputDate);\n      }\n    }\n  }),\n      _useTextValueMapping2 = _slicedToArray(_useTextValueMapping, 3),\n      text = _useTextValueMapping2[0],\n      triggerTextChange = _useTextValueMapping2[1],\n      resetText = _useTextValueMapping2[2]; // ============================ Trigger ============================\n\n\n  var triggerChange = function triggerChange(newValue) {\n    setSelectedValue(newValue);\n    setInnerValue(newValue);\n\n    if (onChange && !isEqual(generateConfig, mergedValue, newValue)) {\n      onChange(newValue, newValue ? formatValue(newValue, {\n        generateConfig: generateConfig,\n        locale: locale,\n        format: formatList[0]\n      }) : '');\n    }\n  };\n\n  var triggerOpen = function triggerOpen(newOpen) {\n    if (disabled && newOpen) {\n      return;\n    }\n\n    triggerInnerOpen(newOpen);\n  };\n\n  var forwardKeyDown = function forwardKeyDown(e) {\n    if (mergedOpen && operationRef.current && operationRef.current.onKeyDown) {\n      // Let popup panel handle keyboard\n      return operationRef.current.onKeyDown(e);\n    }\n    /* istanbul ignore next */\n\n    /* eslint-disable no-lone-blocks */\n\n\n    {\n      warning(false, 'Picker not correct forward KeyDown operation. Please help to fire issue about this.');\n      return false;\n    }\n  };\n\n  var onInternalClick = function onInternalClick() {\n    for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n      args[_key] = arguments[_key];\n    }\n\n    onClick === null || onClick === void 0 ? void 0 : onClick.apply(void 0, args);\n\n    if (inputRef.current) {\n      inputRef.current.focus();\n      triggerOpen(true);\n    }\n  }; // ============================= Input =============================\n\n\n  var _usePickerInput = usePickerInput({\n    blurToCancel: needConfirmButton,\n    open: mergedOpen,\n    value: text,\n    triggerOpen: triggerOpen,\n    forwardKeyDown: forwardKeyDown,\n    isClickOutside: function isClickOutside(target) {\n      return !elementsContains([panelDivRef.current, inputDivRef.current, containerRef.current], target);\n    },\n    onSubmit: function onSubmit() {\n      if ( // When user typing disabledDate with keyboard and enter, this value will be empty\n      !selectedValue || // Normal disabled check\n      disabledDate && disabledDate(selectedValue)) {\n        return false;\n      }\n\n      triggerChange(selectedValue);\n      triggerOpen(false);\n      resetText();\n      return true;\n    },\n    onCancel: function onCancel() {\n      triggerOpen(false);\n      setSelectedValue(mergedValue);\n      resetText();\n    },\n    onKeyDown: function onKeyDown(e, preventDefault) {\n      _onKeyDown === null || _onKeyDown === void 0 ? void 0 : _onKeyDown(e, preventDefault);\n    },\n    onFocus: onFocus,\n    onBlur: onBlur\n  }),\n      _usePickerInput2 = _slicedToArray(_usePickerInput, 2),\n      inputProps = _usePickerInput2[0],\n      _usePickerInput2$ = _usePickerInput2[1],\n      focused = _usePickerInput2$.focused,\n      typing = _usePickerInput2$.typing; // ============================= Sync ==============================\n  // Close should sync back with text value\n\n\n  React.useEffect(function () {\n    if (!mergedOpen) {\n      setSelectedValue(mergedValue);\n\n      if (!valueTexts.length || valueTexts[0] === '') {\n        triggerTextChange('');\n      } else if (firstValueText !== text) {\n        resetText();\n      }\n    }\n  }, [mergedOpen, valueTexts]); // Change picker should sync back with text value\n\n  React.useEffect(function () {\n    if (!mergedOpen) {\n      resetText();\n    }\n  }, [picker]); // Sync innerValue with control mode\n\n  React.useEffect(function () {\n    // Sync select value\n    setSelectedValue(mergedValue);\n  }, [mergedValue]); // ============================ Private ============================\n\n  if (pickerRef) {\n    pickerRef.current = {\n      focus: function focus() {\n        if (inputRef.current) {\n          inputRef.current.focus();\n        }\n      },\n      blur: function blur() {\n        if (inputRef.current) {\n          inputRef.current.blur();\n        }\n      }\n    };\n  }\n\n  var _useHoverValue = useHoverValue(text, {\n    formatList: formatList,\n    generateConfig: generateConfig,\n    locale: locale\n  }),\n      _useHoverValue2 = _slicedToArray(_useHoverValue, 3),\n      hoverValue = _useHoverValue2[0],\n      onEnter = _useHoverValue2[1],\n      onLeave = _useHoverValue2[2]; // ============================= Panel =============================\n\n\n  var panelProps = _objectSpread(_objectSpread({}, props), {}, {\n    className: undefined,\n    style: undefined,\n    pickerValue: undefined,\n    onPickerValueChange: undefined,\n    onChange: null\n  });\n\n  var panelNode = /*#__PURE__*/React.createElement(\"div\", {\n    className: \"\".concat(prefixCls, \"-panel-layout\")\n  }, /*#__PURE__*/React.createElement(PresetPanel, {\n    prefixCls: prefixCls,\n    presets: presetList,\n    onClick: function onClick(nextValue) {\n      triggerChange(nextValue);\n      triggerOpen(false);\n    }\n  }), /*#__PURE__*/React.createElement(PickerPanel, _extends({}, panelProps, {\n    generateConfig: generateConfig,\n    className: classNames(_defineProperty({}, \"\".concat(prefixCls, \"-panel-focused\"), !typing)),\n    value: selectedValue,\n    locale: locale,\n    tabIndex: -1,\n    onSelect: function onSelect(date) {\n      _onSelect === null || _onSelect === void 0 ? void 0 : _onSelect(date);\n      setSelectedValue(date);\n    },\n    direction: direction,\n    onPanelChange: function onPanelChange(viewDate, mode) {\n      var onPanelChange = props.onPanelChange;\n      onLeave(true);\n      onPanelChange === null || onPanelChange === void 0 ? void 0 : onPanelChange(viewDate, mode);\n    }\n  })));\n\n  if (panelRender) {\n    panelNode = panelRender(panelNode);\n  }\n\n  var panel = /*#__PURE__*/React.createElement(\"div\", {\n    className: \"\".concat(prefixCls, \"-panel-container\"),\n    ref: panelDivRef,\n    onMouseDown: function onMouseDown(e) {\n      e.preventDefault();\n    }\n  }, panelNode);\n  var suffixNode;\n\n  if (suffixIcon) {\n    suffixNode = /*#__PURE__*/React.createElement(\"span\", {\n      className: \"\".concat(prefixCls, \"-suffix\")\n    }, suffixIcon);\n  }\n\n  var clearNode;\n\n  if (allowClear && mergedValue && !disabled) {\n    clearNode = /*#__PURE__*/React.createElement(\"span\", {\n      onMouseDown: function onMouseDown(e) {\n        e.preventDefault();\n        e.stopPropagation();\n      },\n      onMouseUp: function onMouseUp(e) {\n        e.preventDefault();\n        e.stopPropagation();\n        triggerChange(null);\n        triggerOpen(false);\n      },\n      className: \"\".concat(prefixCls, \"-clear\"),\n      role: \"button\"\n    }, clearIcon || /*#__PURE__*/React.createElement(\"span\", {\n      className: \"\".concat(prefixCls, \"-clear-btn\")\n    }));\n  }\n\n  var mergedInputProps = _objectSpread(_objectSpread(_objectSpread({\n    id: id,\n    tabIndex: tabIndex,\n    disabled: disabled,\n    readOnly: inputReadOnly || typeof formatList[0] === 'function' || !typing,\n    value: hoverValue || text,\n    onChange: function onChange(e) {\n      triggerTextChange(e.target.value);\n    },\n    autoFocus: autoFocus,\n    placeholder: placeholder,\n    ref: inputRef,\n    title: text\n  }, inputProps), {}, {\n    size: getInputSize(picker, formatList[0], generateConfig)\n  }, getDataOrAriaProps(props)), {}, {\n    autoComplete: autoComplete\n  });\n\n  var inputNode = inputRender ? inputRender(mergedInputProps) : /*#__PURE__*/React.createElement(\"input\", mergedInputProps); // ============================ Warning ============================\n\n  if (process.env.NODE_ENV !== 'production') {\n    warning(!defaultOpenValue, '`defaultOpenValue` may confuse user for the current value status. Please use `defaultValue` instead.');\n  } // ============================ Return =============================\n\n\n  var onContextSelect = function onContextSelect(date, type) {\n    if (type === 'submit' || type !== 'key' && !needConfirmButton) {\n      // triggerChange will also update selected values\n      triggerChange(date);\n      triggerOpen(false);\n    }\n  };\n\n  var popupPlacement = direction === 'rtl' ? 'bottomRight' : 'bottomLeft';\n  return /*#__PURE__*/React.createElement(PanelContext.Provider, {\n    value: {\n      operationRef: operationRef,\n      hideHeader: picker === 'time',\n      onSelect: onContextSelect,\n      open: mergedOpen,\n      defaultOpenValue: defaultOpenValue,\n      onDateMouseEnter: onEnter,\n      onDateMouseLeave: onLeave\n    }\n  }, /*#__PURE__*/React.createElement(PickerTrigger, {\n    visible: mergedOpen,\n    popupElement: panel,\n    popupStyle: popupStyle,\n    prefixCls: prefixCls,\n    dropdownClassName: dropdownClassName,\n    dropdownAlign: dropdownAlign,\n    getPopupContainer: getPopupContainer,\n    transitionName: transitionName,\n    popupPlacement: popupPlacement,\n    direction: direction\n  }, /*#__PURE__*/React.createElement(\"div\", {\n    ref: containerRef,\n    className: classNames(prefixCls, className, (_classNames2 = {}, _defineProperty(_classNames2, \"\".concat(prefixCls, \"-disabled\"), disabled), _defineProperty(_classNames2, \"\".concat(prefixCls, \"-focused\"), focused), _defineProperty(_classNames2, \"\".concat(prefixCls, \"-rtl\"), direction === 'rtl'), _classNames2)),\n    style: style,\n    onMouseDown: onMouseDown,\n    onMouseUp: onMouseUp,\n    onMouseEnter: onMouseEnter,\n    onMouseLeave: onMouseLeave,\n    onContextMenu: onContextMenu,\n    onClick: onInternalClick\n  }, /*#__PURE__*/React.createElement(\"div\", {\n    className: classNames(\"\".concat(prefixCls, \"-input\"), _defineProperty({}, \"\".concat(prefixCls, \"-input-placeholder\"), !!hoverValue)),\n    ref: inputDivRef\n  }, inputNode, suffixNode, clearNode))));\n} // Wrap with class component to enable pass generic with instance method\n\n\nvar Picker = /*#__PURE__*/function (_React$Component) {\n  _inherits(Picker, _React$Component);\n\n  var _super = _createSuper(Picker);\n\n  function Picker() {\n    var _this;\n\n    _classCallCheck(this, Picker);\n\n    for (var _len2 = arguments.length, args = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {\n      args[_key2] = arguments[_key2];\n    }\n\n    _this = _super.call.apply(_super, [this].concat(args));\n\n    _defineProperty(_assertThisInitialized(_this), \"pickerRef\", /*#__PURE__*/React.createRef());\n\n    _defineProperty(_assertThisInitialized(_this), \"focus\", function () {\n      if (_this.pickerRef.current) {\n        _this.pickerRef.current.focus();\n      }\n    });\n\n    _defineProperty(_assertThisInitialized(_this), \"blur\", function () {\n      if (_this.pickerRef.current) {\n        _this.pickerRef.current.blur();\n      }\n    });\n\n    return _this;\n  }\n\n  _createClass(Picker, [{\n    key: \"render\",\n    value: function render() {\n      return /*#__PURE__*/React.createElement(InnerPicker, _extends({}, this.props, {\n        pickerRef: this.pickerRef\n      }));\n    }\n  }]);\n\n  return Picker;\n}(React.Component);\n\nexport default Picker;"],"mappings":"AAAA,OAAOA,eAAe,MAAM,2CAA2C;AACvE,OAAOC,YAAY,MAAM,wCAAwC;AACjE,OAAOC,sBAAsB,MAAM,kDAAkD;AACrF,OAAOC,SAAS,MAAM,qCAAqC;AAC3D,OAAOC,YAAY,MAAM,wCAAwC;AACjE,OAAOC,QAAQ,MAAM,oCAAoC;AACzD,OAAOC,eAAe,MAAM,2CAA2C;AACvE,OAAOC,aAAa,MAAM,0CAA0C;AACpE,OAAOC,cAAc,MAAM,0CAA0C;;AAErE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAOC,UAAU,MAAM,YAAY;AACnC,OAAOC,cAAc,MAAM,iCAAiC;AAC5D,OAAOC,OAAO,MAAM,oBAAoB;AACxC,OAAO,KAAKC,KAAK,MAAM,OAAO;AAC9B,OAAOC,aAAa,MAAM,uBAAuB;AACjD,OAAOC,cAAc,MAAM,wBAAwB;AACnD,OAAOC,UAAU,M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